<template>
  <el-form ref="searchForm" :model="searchForm" label-width="120px" >
    <el-row  :gutter="10">
      <el-col :lg="6" :sm="8">
        <el-form-item label="用户账号">
          <el-input v-model="searchForm.account"></el-input>
        </el-form-item>
      </el-col>
      <el-col :lg="6" :sm="8">
        <el-form-item label="用户名称" >
          <el-input v-model="searchForm.userName"></el-input>
        </el-form-item>
      </el-col>
      <el-col :lg="6" :sm="8">
        <el-form-item label="手机号" >
          <el-input v-model="searchForm.phone"></el-input>
        </el-form-item>
      </el-col>
      <el-col :lg="6" :sm="8">
        <el-button id="seaBtn" shape="circle" icon="md-search" @click="onSearch" type="primary">查询</el-button>
        <el-button id="resBtn" class="mainBtn" shape="circle" icon="md-sync" @click="onReset">重置</el-button>
      </el-col>
    </el-row>

  </el-form>
</template>
<script>
  export default {
    data () {
      return {
        searchForm: {
          account:'',
          userName: '',
          phone: '',
          sex:''
        },
        statList:[
          {
            value: '1',
            label: '男'
          }, {
            value: '0',
            label: '女'
          },
        ]
      }
    },
    methods: {
      onSearch () {
        this.$emit('on-search', this.searchForm)
      },
      onReset () {
          this.searchForm.account=''
          this.searchForm.userName= ''
          this.searchForm.phone= ''
          this.searchForm.sex= ''
      },

    },
    mounted () {

    }
  }
</script>

<style scoped>
</style>
